#ifndef LICLIB_H
#define LICLIB_H

#include <QDateTime>
#include "LicLibExport.h"

class LICLIB_EXPORT LicLib
{
public:
    LicLib();
    ~LicLib();

    static QByteArray getUID();

    static bool generateLicense(const QByteArray &uid, uint time_t, const QString &filename);

    static bool verifyLicense(const QString &filename, QDateTime &time);

private:
    static QString getCPU();

    static QString getBIOS();

    static QString getFromProcess(const QString &cmd, const QString &unused);

    static QByteArray generateCode(const QByteArray &uid, uint time_t);
};

#endif // LICLIB_H
